package com.study.controller;

import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.study.model.mdao.TousuDAO;
import com.study.services.ChartService;
import com.study.services.TousuService;
import com.study.services.WeixiuService;

@Controller
public class ChartController {
	@Autowired
	ChartService service;
	
	@GetMapping("/chart")
	public ModelAndView getForm5() {
		ModelAndView mv = new ModelAndView("afterSale/kehuweixiu");
		mv.addObject("Formchange", service.findByFormchange());
		mv.addObject("CustomerCount", service.findByCustomerCount());
		mv.addObject("OrderMoney", service.findByOrderMoney());
		mv.addObject("OrderState", service.findByOrderState());
		return mv;
	}
}
